<template>
  <div class="welcome">
    <div class="welcome-header">
      <h1>🎉 欢迎使用 Admin 2025</h1>
      <p class="subtitle">现代化的后台管理系统</p>
    </div>

    <div class="features-grid">
      <div class="feature-card">
        <div class="feature-icon">
          <el-icon size="32"><House /></el-icon>
        </div>
        <h3>仪表盘</h3>
        <p>实时数据监控和分析</p>
      </div>

      <div class="feature-card">
        <div class="feature-icon">
          <el-icon size="32"><User /></el-icon>
        </div>
        <h3>用户管理</h3>
        <p>完整的用户权限管理系统</p>
      </div>

      <div class="feature-card">
        <div class="feature-icon">
          <el-icon size="32"><Setting /></el-icon>
        </div>
        <h3>系统配置</h3>
        <p>灵活的系统设置和配置</p>
      </div>

      <div class="feature-card">
        <div class="feature-icon">
          <el-icon size="32"><TrendCharts /></el-icon>
        </div>
        <h3>数据统计</h3>
        <p>丰富的图表和统计功能</p>
      </div>

      <div class="feature-card">
        <div class="feature-icon">
          <el-icon size="32"><Operation /></el-icon>
        </div>
        <h3>组件示例</h3>
        <p>丰富的UI组件库演示</p>
      </div>

      <div class="feature-card">
        <div class="feature-icon">
          <el-icon size="32"><Grid /></el-icon>
        </div>
        <h3>模板中心</h3>
        <p>快速创建和管理模板</p>
      </div>
    </div>

    <div class="tech-stack">
      <h3>技术栈</h3>
      <div class="tech-badges">
        <el-tag type="primary" size="large">Vue 3</el-tag>
        <el-tag type="success" size="large">Element Plus</el-tag>
        <el-tag type="warning" size="large">Vite</el-tag>
        <el-tag type="info" size="large">Pinia</el-tag>
        <el-tag type="danger" size="large">ECharts</el-tag>
        <el-tag size="large">TypeScript</el-tag>
      </div>
    </div>

    <div class="quick-actions">
      <h3>快速开始</h3>
      <div class="action-buttons">
        <el-button type="primary" @click="$router.push('/dashboard')">
          <el-icon><House /></el-icon>
          查看仪表盘
        </el-button>
        <el-button type="success" @click="$router.push('/system/users')">
          <el-icon><User /></el-icon>
          用户管理
        </el-button>
        <el-button type="warning" @click="$router.push('/examples/forms')">
          <el-icon><Promotion /></el-icon>
          表单示例
        </el-button>
        <el-button type="info" @click="$router.push('/component/charts')">
          <el-icon><TrendCharts /></el-icon>
          图表组件
        </el-button>
      </div>
    </div>
  </div>
</template>

<script setup>
import { 
  House, 
  User, 
  Setting, 
  TrendCharts, 
  Operation, 
  Grid,
  Promotion
} from '@element-plus/icons-vue'
</script>

<style scoped>
.welcome {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.welcome-header {
  text-align: center;
  margin-bottom: 60px;
}

.welcome-header h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-weight: 700;
}

.subtitle {
  font-size: 1.2rem;
  color: #666;
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  margin-bottom: 20px;
  color: white;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #333;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.tech-stack {
  text-align: center;
  margin-bottom: 60px;
}

.tech-stack h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: #333;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.quick-actions {
  text-align: center;
}

.quick-actions h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: #333;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.action-buttons .el-button {
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .welcome-header h1 {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .action-buttons .el-button {
    width: 200px;
  }
}
</style>
